package cn.yh.shop.admin.model;

import java.util.List;

/**
 * @Description: 管理员菜单类
 * @author:"许荣斐"
 * @time:2016年12月14日 下午6:43:26
 */
public class Menu implements java.io.Serializable {

  /**
 * @Description: menuId : 菜单id
 */
private int menuId;
  /**
 * @Description: parentId : 父菜单id
 */
private int parentId;
  /**
 * @Description: name : 菜单名称
 */
private String name;
  /**
 * @Description: url : 菜单url
 */
private String url;
  /**
 * @Description: perms : 授权(多个用逗号分隔，如：user:list,user:create)
 */
private String perms;
  /**
 * @Description: type : 类型   0：目录   1：菜单   2：按钮
 */
private int type;
  /**
 * @Description: icon : 菜单图标
 */
private String icon;
  /**
 * @Description: orderNum : 排序
 */
private int orderNum;

private List<?> list;
	
/**
 * @Description:无参构造方法
 */
public Menu() {
	
}



/**
 * @Description:有参构造方法
 */
public Menu(int menuId, int parentId, String name, String url, String perms, int type, String icon, int orderNum) {
	super();
	this.menuId = menuId;
	this.parentId = parentId;
	this.name = name;
	this.url = url;
	this.perms = perms;
	this.type = type;
	this.icon = icon;
	this.orderNum = orderNum;
}



/**
 * @return the list
 */
public List<?> getList() {
	return list;
}



/**
 * @param list the list to set
 */
public void setList(List<?> list) {
	this.list = list;
}



/**
 * @return the menuId
 */
public int getMenuId() {
	return menuId;
}

/**
 * @param menuId the menuId to set
 */
public void setMenuId(int menuId) {
	this.menuId = menuId;
}

/**
 * @return the parentId
 */
public int getParentId() {
	return parentId;
}

/**
 * @param parentId the parentId to set
 */
public void setParentId(int parentId) {
	this.parentId = parentId;
}

/**
 * @return the name
 */
public String getName() {
	return name;
}

/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}

/**
 * @return the url
 */
public String getUrl() {
	return url;
}

/**
 * @param url the url to set
 */
public void setUrl(String url) {
	this.url = url;
}

/**
 * @return the perms
 */
public String getPerms() {
	return perms;
}

/**
 * @param perms the perms to set
 */
public void setPerms(String perms) {
	this.perms = perms;
}

/**
 * @return the type
 */
public int getType() {
	return type;
}

/**
 * @param type the type to set
 */
public void setType(int type) {
	this.type = type;
}

/**
 * @return the icon
 */
public String getIcon() {
	return icon;
}

/**
 * @param icon the icon to set
 */
public void setIcon(String icon) {
	this.icon = icon;
}

/**
 * @return the orderNum
 */
public int getOrderNum() {
	return orderNum;
}

/**
 * @param orderNum the orderNum to set
 */
public void setOrderNum(int orderNum) {
	this.orderNum = orderNum;
}

@Override
	public String toString() {
		return "{name:'"+name+"',url:'"+url+"',icon:'"+icon+"'}";
	}

}


